package app.client;

import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * Created by IntelliJ IDEA.
 * User: Awake
 * Date: 25.03.12
 * Time: 16:44
 * To change this template use File | Settings | File Templates.
 */
public class ClientMain {
    public static void main(String[] args) {

        System.out.println();
        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                JFrame frame = new DBFrame();
                frame.setTitle("Person");
                frame.setVisible(true);
                frame.setResizable(false);
                frame.addWindowListener(new WindowAdapter() {
                    @Override
                    public void windowClosing(WindowEvent e) {
                        RequestSender.closeConnection();
                        System.exit(0);
                    }
                });
            }
        });
    }
}
